import App from './App.vue'
import * as Pinia from 'pinia';
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
// #endif
import uView from '@/uni_modules/uview-next'

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
// import piniaPluginPersistedstate from "pinia-plugin-persistedstate"
export function createApp() {
	const app = createSSRApp(App)
	app.use(Pinia.createPinia());
	app.use(uView)
	return {
		app,
		Pinia
	}
}
// #endif